// RULES FOR THE AGENTS

// get the center of the corral
corral_pos(X, Y) :- corral(UpperX, UpperY, LowerX, LowerY) & X = (UpperX+LowerX)/2 & Y = (UpperY+LowerY)/2.